package com.czr.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;

public enum StatusEnum {

    STATUS(1, "发布"), NO_STATUS(0, "未发布");

    StatusEnum(int code, String descp) {
        this.code = code;
        this.descp = descp;
    }

    @EnumValue//标记数据库存的值是code
    private final int code;
    private final String descp;
}